﻿using Newtonsoft.Json;



namespace MvcWechat
{

    public class Result
    {
        public bool msgcode { get; set; }
        public object msginfo { get; set; }
    }
    public class Product
    {
        object result;
        public object Result
        {
            get { return result == null ? result : JsonConvert.DeserializeObject<Result>(result.ToString()); }
            set { result = value; }
        }
    }
    public class Parcel : Product { }  //不能直接继承Result，无法正确序列出来，转一下就行
    public class Ring : Product { }
    public class Gem : Product { }
    public class Emerald : Product { }
    public class Stock : Product { }
    public class PrimeGold : Product { }
    public class Root
    {
        public Stock stock { get; set; }
        public Parcel parcel { get; set; }
        public Ring ring { get; set; }
        public Gem gem { get; set; }
        public Emerald emerald { get; set; }
        public PrimeGold prime_gold { get; set; }
    }
}